﻿<UserControl
    x:Class="Rio.Framework.Pages.Message"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:Toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
    Width="500" Height="180" 
    > 
    
    <UserControl.Resources>
        <Style x:Key="MessageStyle" TargetType="Border">
            <Setter Property="Background">
                <Setter.Value>
                    <LinearGradientBrush>
                        <GradientStop Color="#FF294890" Offset="0.022"/>
                        <GradientStop Color="#FF499ED5" Offset="0.536"/>
                        <GradientStop Color="#FF255D96" Offset="0.728"/>
                    </LinearGradientBrush>
                </Setter.Value>
            </Setter>
            <Setter Property="BorderBrush"     Value="#FF255D96" />
            <Setter Property="BorderThickness" Value="5" />            
        </Style>        
    </UserControl.Resources>
    
    <Grid x:Name="LayoutRoot" >
        <Grid.ColumnDefinitions>
            <ColumnDefinition MaxWidth="128"/>
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="25"/>
            <RowDefinition />
            <RowDefinition Height="40"/>
        </Grid.RowDefinitions>
        
        <Border Style="{StaticResource MessageStyle}" Grid.ColumnSpan="2" Grid.RowSpan="3" />
        <TextBlock Name="Title" Grid.ColumnSpan="2" Grid.Row="0" Margin="10,2,5,2" HorizontalAlignment="Left" VerticalAlignment="Center" TextWrapping="Wrap"/>
        <TextBlock Name="Msg" Grid.Column="1" Grid.Row="1" Margin="10,20,10,20" VerticalAlignment="Center" TextWrapping="Wrap"/>

        <Toolkit:WrapPanel Grid.Column="1" Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,8,0,0">
            <Button Name="buttonOk"     Width="80" Height="25" HorizontalAlignment="Right" Margin="0,0,5,0" Visibility="Collapsed" Click="buttonOk_Click" />
            <Button Name="buttonCancel" Width="80" Height="25" HorizontalAlignment="Right" Margin="0,0,5,0" Visibility="Collapsed" Click="buttonCancel_Click" />
            <Button Name="buttonYes"    Width="80" Height="25" HorizontalAlignment="Right" Margin="0,0,5,0" Visibility="Collapsed" Click="buttonYes_Click" />
            <Button Name="buttonNo"     Width="80" Height="25" HorizontalAlignment="Right" Margin="0,0,5,0" Visibility="Collapsed" Click="buttonNo_Click" />
        </Toolkit:WrapPanel>
        <Image Name="img" Grid.Column="0" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center" Width="128" Height="128" Source="Assets/Images/Information.png" />
    </Grid>
</UserControl>
